From: Silvère Latchurié Date: Fri, 26 May 2017 15:46:35 +0000 (+0200) Subject: osdWindow: Fix blurriness at certain resolutions X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~929^2~5^2~68 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=53361757360239f98cd9ceb562f6695b4b3c18f3;p=gnome-shell.git osdWindow: Fix blurriness at certain resolutions The y position wasn't rounded, leading to some blurriness at vertical resolutions that aren't a multiple of 4 (e.g. 1050). https://bugzilla.gnome.org/show_bug.cgi?id=782011 --- diff --git a/js/ui/osdWindow.js b/js/ui/osdWindow.js index f27f48965..a73912413 100644 --- a/js/ui/osdWindow.js +++ b/js/ui/osdWindow.js @@ -204,7 +204,7 @@ var OsdWindow = new Lang.Class({ let scaleFactor = St.ThemeContext.get_for_stage(global.stage).scale_factor; this._icon.icon_size = popupSize / (2 * scaleFactor); - this._box.translation_y = monitor.height / 4; + this._box.translation_y = Math.round(monitor.height / 4); this._boxConstraint.minSize = popupSize; } });